package com.shenda.device.analysis.protocol;

import java.io.IOException;
import java.io.InputStream;

import com.shenda.device.Constants;

/**
 * 新数据文件协议
 * 
 * @author lifeng
 */
public class NewProtpcol implements Protpcol {

	@Override
	public byte[] readHead(InputStream input) throws IOException {
		byte[] head = new byte[Constants.iHeadSize];
		input.read(head);
		return head;
	}

	@Override
	public byte[] readData(InputStream input) throws IOException {
		byte[] head = new byte[Constants.iBlockSize];
		input.read(head);
		return head;
	}
}
